package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 配置基础的数据
 * </p>
 *
 * @author stylefeng
 * @since 2019-05-25
 */
@TableName("sys_param_config")
public class ParamConfig extends Model<ParamConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 基础配置的key
     */
    private String key;
    /**
     * 配置的值
     */
    private String value;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 登录创建的用户
     */
    private Integer authorId;
    /**
     * 基础配置参数描述及备注
     */
    private String remark;
    /**
     * 更新的时间
     */
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ParamConfig{" +
        "id=" + id +
        ", key=" + key +
        ", value=" + value +
        ", createTime=" + createTime +
        ", authorId=" + authorId +
        ", remark=" + remark +
        ", updateTime=" + updateTime +
        "}";
    }
}
